package com.webas.api.auth;

import java.io.Serializable;
import java.util.List;
/**
 * 
 * @author tkhasano
 *
 */
public interface Token extends Serializable{
	
	List<Role> getRoles();

	User getCredentials();
	void eraseCredentials();
	
	User getUser();
	void setUser(User user);	
	String getUsername();
	
	Boolean	isAuthenticated();
	void setAuthenticated(Boolean isAuthenticated);
	
	Object	getAttribute(String name);	
	void setAttributes(List<Object> attributes);
	
	List<Object> getAttributes();
	void setAttribute(String name, Object value);
	
	Boolean	hasAttribute(String name);
}
